import { createApp } from 'vue'
// import './style.css'
import App from './App.vue'
import router from "./router/router.js";
import { createPinia } from 'pinia'  //导入pinia
// import { mavonEditor } from 'mavon-editor'
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'

import ElementPlus from 'element-plus'

import 'element-plus/dist/index.css'
import axios from './axios/axiosInstance.js'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'





const pinia = createPinia();
// const mavon=mavonEditor();
const  app=createApp(App)
app.use(ElementPlus)
app.use(router)
app.use(mavonEditor)
app.config.globalProperties.$axios= axios;
app.use(pinia);//使用pinia

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.mount('#app')
